﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Users_F.aspx.cs" Inherits="ERPWebDemos.Forms.Users_F" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
                                   
<%@ Register Assembly="RuleCode.Common" Namespace="RuleCode.Controls" TagPrefix="cc1" %>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title> 
    <link href="/CSS/Form_G.css" rel="stylesheet" type="text/css" />
    <link href="/CSS/dhtmlwindow.css" rel="stylesheet" type="text/css" />
    <link href="/CSS/jquery.alerts.css" rel="stylesheet" type="text/css" />
    <link href="/CSS/contextMenu.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        var tableName = "Users";
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div> 
        <div id="OperatorDiv">
        </div>
        <div id="FilterDiv"> 
            <div class="TableFilterDiv">
                <fieldset>
                    <legend>过滤条件设置</legend>
                </fieldset>
            </div> 
            <div class="FilterCollapseDiv" style =" text-align:center; padding-left:15%;">
                <a id="searchFilterAnchor" title ="展开/折叠 设置搜索条件" >展开/折叠</a>
            </div>         
        </div>
        <div id="DataDiv" style=" margin-top:15px;"> 
            <hr />       
            <div id="NoDataDiv" runat="server"  class="NoDataDiv">对不起，没有找到符合您要求的数据</div>
            <asp:GridView ID="MainGridView" Width="100%" DataKeyNames="RECID" runat="server" AutoGenerateColumns="False" CssClass="MainGrid">
                  <Columns>
                      <asp:BoundField DataField="UserID" HeaderText="UserID"   SortExpression="UserID" />
                      <asp:BoundField DataField="Email" HeaderText="Email" SortExpression="Email" /> 
                      <asp:TemplateField HeaderText ="更新" HeaderStyle-Width="100px" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="100px">
                        <ItemTemplate>
                             <table >
                                <tr>
                                    <td>
                                        <a href="#" recid='<%#Eval("RECID").ToString() %>' title="修改" class="OperatorAnchor editData">修改</a>
                                    </td>
                                    <td>
                                        <a href="#" recid='<%#Eval("RECID").ToString() %>' title="删除" class="OperatorAnchor deleteData">删除</a>
                                    </td>
                                </tr>
                             </table>     
                        </ItemTemplate>
                      </asp:TemplateField>                   
                  </Columns>  
            </asp:GridView>  
            <div class="GridViewFooter" >             
                <a href="#" class="addData" title="增加新记录">增加新记录</a>                
            </div>
        </div>
        <div id="PageDiv" class="PageDiv">
            <cc1:WebPager ID="MainWebPager" runat="server" PageSize="6"  
                ControlToPaginate="MainGridView" CssClass="MainWebPager" 
                onpageindexchanged="MainWebPager_PageIndexChanged"/>
        </div>
    </div>
    
    <div id="UserMenu" style="position: absolute; display: none; top: 0px; left: 0px; width: 130px;
        margin: 0px;  border: 1px solid #cccccc; background-color: #CEE2FF;">
        <ul  class="MenuUl">   
            <li  class="MenuItem" id="GotoMainTable" >查看主表</li>
            <li class="MenuItem" id="EditRecord">编辑</li>
            <li class="MenuItem" id="DeleteRecord">删除</li>                           
        </ul>
    </div> 
    <script src="/JS/dhtmlwindow.js" type="text/javascript"></script>
    <script src="/JS/jquery-1.3.2.min.js" type="text/javascript"></script>  
    <script src="/JS/jquery.extender.js" type="text/javascript"></script>
    <script src="/JS/jquery.alerts.js" type="text/javascript"></script>  
    <script src="/JS/jquery.contextmenu.js" type="text/javascript"></script>
    <script type="text/javascript" src="/JS/ERP_Form.js"></script>
    </form>
</body>
</html>
